import request from '@/utils/service'

export default {
  async login(data) {
    return await request({
      url: '/api/admins/login',
      method: 'get',
      params: data
    })
  },
  async getInfo(_id) {
    return await request({
      url: '/api/admins/info/'+_id,
      method: 'get'
    })
  }
}
